views:
  - title: Home
    sections:
      - type: grid
        cards:
          - type: vertical-stack
            cards:
              - type: horizontal-stack
                cards:
                  - type: custom:compass-card
                    tap_action:
                      entity: sensor.gw2000a_wind_speed
                    indicator_sensors:
                      - sensor: sensor.gw2000a_wind_direction
                        indicator:
                          type: arrow_inward
                      - sensor: sun.sun
                        attribute: azimuth
                        indicator:
                          type: circle
                    value_sensors:
                      - sensor: sensor.gw2000a_wind_speed
                        state_value:
                          color: red
                      - sensor: sensor.gw2000a_wind_direction
                    compass:
                      north:
                        show: true
                        color: red
                      east:
                        show: true
                      west:
                        show: true
                      south:
                        show: true
                  - type: custom:mushroom-chips-card
                    chips:
                      - type: template
                        icon: mdi:wind-power
                        entity: sensor.gw2000a_max_daily_wind_gust
                        tap_action:
                          action: more-info
                        content: >-
                          {% set state=states('sensor.gw2000a_max_daily_gust')
                          %} Max Daily Gust: {{ state }} mph
                      - type: template
                        icon: mdi:wind-power
                        entity: sensor.gw2000a_wind_gust
                        tap_action:
                          action: more-info
                        content: |-
                          {% set state=states('sensor.gw2000a_wind_gust') %}
                          Gust Speed: {{ state }} mph
                      - type: conditional
                        conditions:
                          - entity: sensor.gw2000a_windchill
                            state_not: unknown
                        chip:
                          type: template
                          icon: mdi:wind-power
                          entity: sensor.gw2000a_windchill
                          tap_action:
                            action: more-info
                          content: |-
                            {% set state=states('sensor.gw2000a_windchill') %}
                            Windchill: {{ state }} °C
                      - type: template
                        icon: mdi:compass-outline
                        entity: sensor.gw2000a_wind_direction
                        tap_action:
                          action: more-info
                        content: >-
                          {% set state=states('sensor.gw2000a_wind_direction')
                          %}

                          Direction: {{ state }} °
          - chart_type: line
            period: hour
            days_to_show: 7
            type: statistics-graph
            entities:
              - entity: sensor.gw2000a_wind_speed
                name: Speed
              - entity: sensor.gw2000a_wind_gust
                name: Gust
            stat_types:
              - mean
          - type: vertical-stack
            cards:
              - type: entities
                entities:
                  - entity: sensor.gw2000a_solar_lux
                    name: Luminance
                    secondary_info: none
                  - entity: sensor.gw2000a_solar_radiation
                    name: Radiation
                    icon: mdi:sun-wireless
                  - entity: sensor.gw2000a_uv_index
                    name: UV Index
                    icon: mdi:sun-wireless-outline
                footer:
                  type: graph
                  entity: sensor.gw2000a_solar_lux
                  detail: 2
        column_span: 1
      - type: grid
        cards:
          - show_current: false
            show_forecast: true
            type: weather-forecast
            entity: weather.forecast_home
            forecast_type: daily
          - type: vertical-stack
            cards:
              - chart_type: line
                period: hour
                type: statistics-graph
                entities:
                  - sensor.gw2000a_outdoor_temperature
                  - sensor.gw2000a_feels_like_temperature
                stat_types:
                  - mean
                  - max
                  - min
                days_to_show: 7
              - chart_type: line
                period: hour
                days_to_show: 7
                type: statistics-graph
                entities:
                  - entity: sensor.gw2000a_indoor_humidity
                    name: Indoor
                  - entity: sensor.gw2000a_humidity
                    name: Outdoor
                stat_types:
                  - mean
                  - min
                  - max
      - type: grid
        cards:
          - type: vertical-stack
            cards:
              - chart_type: bar
                period: day
                type: statistics-graph
                entities:
                  - sensor.gw2000a_rain_rate_piezo
                stat_types:
                  - max
                days_to_show: 14
              - show_name: true
                show_icon: false
                show_state: true
                type: glance
                entities:
                  - entity: sensor.gw2000a_event_rain_rate_piezo
                    name: Event
                  - entity: sensor.gw2000a_hourly_rain_rate_piezo
                    name: Hourly
                  - entity: sensor.gw2000a_daily_rain_rate_piezo
                    name: Daily
                  - entity: sensor.gw2000a_weekly_rain_rate_piezo
                    name: Weekly
                  - entity: sensor.gw2000a_monthly_rain_rate_piezo
                    name: Monthly
                  - entity: sensor.gw2000a_yearly_rain_rate_piezo
                    name: Yearly
                columns: 3
          - type: vertical-stack
            cards:
              - chart_type: bar
                period: day
                days_to_show: 30
                type: statistics-graph
                entities:
                  - sensor.gw2000a_daily_rain_rate_piezo
                title: 30 Day Rain Rate
                stat_types:
                  - change
      - type: grid
        cards:
          - type: vertical-stack
            cards:
              - type: horizontal-stack
                cards:
                  - type: gauge
                    entity: sensor.gw2000a_wh90_capacitor
                    needle: true
                    max: 5.3
                    min: 1
                    name: Capacitor
                    severity:
                      green: 3.5
                      yellow: 2.5
                      red: 1
                  - type: gauge
                    entity: sensor.gw2000a_wh90_battery
                    name: Battery
                    max: 2.64
                    needle: true
                    severity:
                      green: 2.5
                      yellow: 2.25
                      red: 0
                    min: 2
          - type: vertical-stack
            cards:
              - chart_type: bar
                period: day
                days_to_show: 30
                type: statistics-graph
                entities:
                  - sensor.gw2000a_outdoor_temperature
                stat_types:
                  - max
                title: 30 Day Max Temperature
          - type: vertical-stack
            cards:
              - chart_type: bar
                period: day
                type: statistics-graph
                entities:
                  - sensor.gw2000a_solar_radiation
                stat_types:
                  - mean
                title: Mean Daily Solar
                days_to_show: 7
      - type: grid
        cards:
          - type: heading
            heading: Greenhouse
            heading_style: title
            icon: mdi:greenhouse
          - type: vertical-stack
            cards:
              - chart_type: line
                period: hour
                type: statistics-graph
                entities:
                  - sensor.gw2000a_temperature_2
                stat_types:
                  - max
                  - mean
                  - min
                hide_legend: false
                days_to_show: 1
            grid_options:
              columns: 16
              rows: auto
          - type: vertical-stack
            cards:
              - chart_type: line
                period: hour
                type: statistics-graph
                entities:
                  - sensor.gw2000a_humidity_2
                stat_types:
                  - max
                  - mean
                  - min
                hide_legend: false
                days_to_show: 1
            grid_options:
              columns: 16
              rows: auto
          - type: vertical-stack
            cards:
              - chart_type: line
                period: hour
                type: statistics-graph
                entities:
                  - sensor.gw2000a_soil_moisture_1
                  - sensor.gw2000a_soil_moisture_3
                stat_types:
                  - min
                  - mean
                  - max
                days_to_show: 1
            grid_options:
              columns: 16
              rows: auto
          - type: vertical-stack
            cards:
              - chart_type: line
                period: day
                type: statistics-graph
                entities:
                  - sensor.gw2000a_temperature_2
                stat_types:
                  - max
                  - mean
                  - min
                hide_legend: false
                days_to_show: 5
            grid_options:
              columns: 16
              rows: auto
          - type: vertical-stack
            cards:
              - chart_type: line
                period: day
                type: statistics-graph
                entities:
                  - sensor.gw2000a_humidity_2
                stat_types:
                  - max
                  - mean
                  - min
                hide_legend: false
                days_to_show: 5
            grid_options:
              columns: 16
              rows: auto
          - type: vertical-stack
            cards:
              - chart_type: line
                period: day
                type: statistics-graph
                entities:
                  - sensor.gw2000a_soil_moisture_1
                  - sensor.gw2000a_soil_moisture_3
                stat_types:
                  - min
                  - mean
                  - max
                days_to_show: 3
            grid_options:
              columns: 16
              rows: auto
          - type: vertical-stack
            cards:
              - chart_type: line
                period: day
                type: statistics-graph
                entities:
                  - sensor.gw2000a_temperature_2
                stat_types:
                  - max
                  - mean
                  - min
                hide_legend: false
                days_to_show: 90
            grid_options:
              columns: 16
              rows: auto
          - type: vertical-stack
            cards:
              - chart_type: line
                period: day
                type: statistics-graph
                entities:
                  - sensor.gw2000a_humidity_2
                stat_types:
                  - max
                  - mean
                  - min
                hide_legend: false
                days_to_show: 90
            grid_options:
              columns: 16
              rows: auto
          - type: vertical-stack
            cards:
              - chart_type: line
                period: day
                type: statistics-graph
                entities:
                  - sensor.gw2000a_soil_moisture_1
                stat_types:
                  - mean
                  - max
                  - min
                days_to_show: 90
            grid_options:
              columns: 16
              rows: 1
        column_span: 4
      - type: grid
        cards:
          - type: heading
            icon: ''
            heading: 12 Month View
            heading_style: title
          - type: vertical-stack
            cards:
              - chart_type: line
                period: day
                type: statistics-graph
                entities:
                  - sensor.gw2000a_solar_radiation
                stat_types:
                  - mean
                  - max
                title: Solar
                days_to_show: 365
          - type: vertical-stack
            cards:
              - chart_type: line
                period: day
                type: statistics-graph
                entities:
                  - sensor.gw2000a_outdoor_temperature
                stat_types:
                  - max
                  - mean
                title: Temperature
                days_to_show: 365
          - type: vertical-stack
            cards:
              - chart_type: line
                period: day
                days_to_show: 365
                type: statistics-graph
                entities:
                  - sensor.gw2000a_uv_index
                title: UV
                stat_types:
                  - mean
                  - min
                  - max
          - type: vertical-stack
            cards:
              - chart_type: bar
                period: day
                days_to_show: 365
                type: statistics-graph
                entities:
                  - sensor.gw2000a_monthly_rain_rate_piezo
                title: Rain
                stat_types:
                  - change
        column_span: 4
    badges:
      - type: entity
        show_name: true
        show_state: true
        show_icon: true
        entity: sensor.gw2000a_outdoor_temperature
        name: Outdoor
      - type: entity
        show_name: true
        show_state: true
        show_icon: true
        entity: sensor.gw2000a_temperature_2
        name: Greenhouse
      - type: entity
        show_name: true
        show_state: true
        show_icon: true
        entity: sensor.gw2000a_monthly_rain_rate_piezo
        name: Monthly Rain
      - type: entity
        show_name: true
        show_state: true
        show_icon: true
        entity: sensor.gw2000a_soil_moisture_1
        name: Soil
        show_entity_picture: true
